package com.fesine.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description: user属性配置类
 * 1、添加@Component注解
 * 2、添加@ConfigurationProperties注解
 * @author: Fesine
 * @createTime:2017/8/29 23:37
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2017/8/29 23:37
 */
@Component
@ConfigurationProperties(prefix = "zk")
@Data
public class ZkProperties {
    private String client;
    private String address;
    private String protocol;
    private String group;
    private Integer port;

}
